<template>
    <view style="height: 100%">
        <picker @change="__e" class="data-v-0b91a18a" :data-event-opts="[['change', [['bindPickerChange', ['$event']]]]]" :range="list" rangeKey="label" :value="index">
            <view class="uni-input content-c data-v-0b91a18a">
                <text class="data-v-0b91a18a" v-if="index > -1">{{ '' + list[index].label + '' }}</text>
                <text class="tips-text data-v-0b91a18a" v-else>请选择</text>
                <text class="new-iconfont icon-arrow-right data-v-0b91a18a" v-if="rightIcon"></text>
            </view>
        </picker>
    </view>
</template>

<script>
import tabBar from '@/components/TabBar/tabBar';
(global.webpackJsonp = global.webpackJsonp || []).push([
    ['components/IPicker/IPicker'],
    {
        '0cd8': function (t, n, e) {
            'use strict';

            var i = e('276f');
            e.n(i).a;
        },
        '276f': function (t, n, e) {},
        6157: function (t, n, e) {
            'use strict';

            e.d(n, 'b', function () {
                return i;
            });
            e.d(n, 'c', function () {
                return c;
            });
            e.d(n, 'a', function () {});
            var i = function () {
                this.$createElement;
                this._self._c;
            };
            var c = [];
        },
        '834b': function (t, n, e) {
            'use strict';

            Object.defineProperty(n, '__esModule', {
                value: true
            });
            n.default = void 0;
            var i = {
                props: {
                    value: {
                        default: function () {
                            return '';
                        }
                    },
                    list: {
                        type: Array,
                        default: function () {
                            return [];
                        }
                    },
                    rightIcon: {
                        type: Boolean,
                        default: function () {
                            return false;
                        }
                    }
                },
                data: function () {
                    return {
                        index: -1
                    };
                },
                mounted: function () {
                    for (var t = 0; t < this.list.length; t++) {
                        if (this.list[t].key == this.value) {
                            this.index = t;
                            return true;
                        }
                    }
                },
                watch: {
                    value: function (t) {
                        for (var n = 0; n < this.list.length; n++) {
                            if (this.list[n].key === t) {
                                this.index = n;
                                return true;
                            }
                        }
                    }
                },
                methods: {
                    bindPickerChange: function (t) {
                        this.index = t.target.value;
                        this.$emit('input', this.list[this.index].key);
                    }
                }
            };
            n.default = i;
        },
        9801: function (t, n, e) {
            'use strict';

            e.r(n);
            var i = e('834b');
            var c = e.n(i);
            for (var r in i) {
                if (['default'].indexOf(r) < 0) {
                    (function (t) {
                        e.d(n, t, function () {
                            return i[t];
                        });
                    })(r);
                }
            }
            n.default = c.a;
        },
        c89e: function (t, n, e) {
            'use strict';

            e.r(n);
            var i = e('6157');
            var c = e('9801');
            for (var r in c) {
                if (['default'].indexOf(r) < 0) {
                    (function (t) {
                        e.d(n, t, function () {
                            return c[t];
                        });
                    })(r);
                }
            }
            e('0cd8');
            var o = e('f0c5');
            var u = Object(o.a)(c.default, i.b, i.c, false, null, '0b91a18a', null, false, i.a, void 0);
            n.default = u.exports;
        }
    }
]);
(global.webpackJsonp = global.webpackJsonp || []).push([
    'components/IPicker/IPicker-create-component',
    {
        'components/IPicker/IPicker-create-component': function (t, n, e) {
            e('543d').createComponent(e('c89e'));
        }
    },
    [['components/IPicker/IPicker-create-component']]
]);
</script>
<style>
@import './IPicker.css';
</style>
